package com.bcu.cn.onlineexamsystem.exammanage.service.impl;

import com.bcu.cn.onlineexamsystem.exammanage.entity.Question;
import com.bcu.cn.onlineexamsystem.exammanage.mapper.QuestionMapper;
import com.bcu.cn.onlineexamsystem.exammanage.service.QuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class QuestionServiceImpl implements QuestionService {
    
    @Autowired
    private QuestionMapper questionMapper;
    
    @Override
    public List<Question> getQuestionsByCourseId(String courseId, String type) {
        return questionMapper.findByCourseIdAndType(courseId, type);
    }
} 